#
835e96ac |
|
12-Nov-2020 |
Curtis Millar <curtis.millar@data61.csiro.au> |
Add streaming base64 CBOR encoder to libutils This implements an encoder for the Concise Binary Object Representation that is streamed to an output as a base64 encoded bytestream. For more details on CBOR, see [IETF RFC 7049](https://tools.ietf.org/html/rfc7049). Signed-off-by: Curtis Millar <curtis.millar@data61.csiro.au>
|
#
16573383 |
|
26-Sep-2019 |
Damon Lee <Damon.Lee@data61.csiro.au> |
trivial: Style changed files
|
#
66c2db5c |
|
26-Sep-2019 |
Damon Lee <Damon.Lee@data61.csiro.au> |
libutils: Add next-power-of-2 macro Like the name suggests, this macro calculates the next power of 2 for a 32 bit integer.
|
#
8df81c8b |
|
06-Nov-2017 |
Adrian Danis <Adrian.Danis@data61.csiro.au> |
libutils: MASK can create masks that are all 1's By using two operations of MASK_UNSAFE and BIT a full mask of 1's is able to be created.
|
#
a7130f9f |
|
04-Jun-2017 |
Anna Lyons <Anna.Lyons@data61.csiro.au> |
fix licenses
|
#
0f7878c8 |
|
15-Nov-2016 |
Kent McLeod <Kent.Mcleod@data61.csiro.au> |
Add DIV_ROUND and DIV_ROUND_UP macros
|
#
a7b8939c |
|
25-May-2016 |
Matthew Fernandez <matthew.fernandez@nicta.com.au> |
libutils: trivial: Replace ifdef guards with pragma once.
|
#
ffae30f6 |
|
24-May-2016 |
Matthew Fernandez <matthew.fernandez@nicta.com.au> |
libutils: Remove unnecessary use of GNU statement expression.
|
#
872f4862 |
|
04-Mar-2016 |
Matthew Fernandez <matthew.fernandez@gmail.com> |
libutils: Fix double expansion of expression within macro. A macro designed to only expand its arguments once is decidedly unhelpful when it doesn't do such.
|
#
4332cd19 |
|
17-Feb-2016 |
Stephen Sherratt <Stephen.Sherratt@nicta.com.au> |
libutils: Added 'PAD_STRUCT_BETWEEN' macro This macro generates dummy struct fields that add padding to structs. It is useful when a struct must correspond to a register layout, such as in a device driver.
|
#
7e306a51 |
|
23-Nov-2015 |
Matthew Fernandez <matthew.fernandez@nicta.com.au> |
libutils: Fix: more portable LOG_BASE_2 macro. The previous definition of this macro used `typeof` on the input parameter, ignoring the fact that the input is promoted to an `unsigned long` in the course of being passed to `__builtin_clzl`. The new definition also takes into account platforms where a byte is not 8 bits (almost nowhere, but doesn't hurt to be paranoid) and removes some extraneous brackets. Closes GINCA #13
|
#
1ce0fc5d |
|
15-Nov-2015 |
Adrian Danis <Adrian.Danis@nicta.com.au> |
libutils: Comments explaining MASK and LOG_BASE_2 macros
|
#
2d06df66 |
|
12-Nov-2015 |
Adrian Danis <Adrian.Danis@nicta.com.au> |
libutils: Add long versions of bit operations and preference using them
|
#
9a2ac564 |
|
12-Nov-2015 |
Adrian Danis <Adrian.Danis@nicta.com.au> |
libutils: Use 64-bit friendly types
|