ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.pod
(Generate patch)

Comparing libecb/ecb.pod (file contents):
Revision 1.15 by root, Thu May 26 23:26:29 2011 UTC vs.
Revision 1.16 by sf-exg, Thu May 26 23:32:41 2011 UTC

3=head2 ABOUT LIBECB 3=head2 ABOUT LIBECB
4 4
5Libecb is currently a simple header file that doesn't require any 5Libecb is currently a simple header file that doesn't require any
6configuration to use or include in your project. 6configuration to use or include in your project.
7 7
8It's part of the e-suite of libraries, other memembers of which include 8It's part of the e-suite of libraries, other members of which include
9libev and libeio. 9libev and libeio.
10 10
11Its homepage can be found here: 11Its homepage can be found here:
12 12
13 http://software.schmorp.de/pkg/libecb 13 http://software.schmorp.de/pkg/libecb
14 14
15It mainly provides a number of wrappers around GCC built-ins, together 15It mainly provides a number of wrappers around GCC built-ins, together
16with replacement functions for other compilers. In addition to this, 16with replacement functions for other compilers. In addition to this,
17it provides a number of other lowlevel C utilities, such endienness 17it provides a number of other lowlevel C utilities, such as endianness
18detection, byte swapping or bit rotations. 18detection, byte swapping or bit rotations.
19 19
20More might come. 20More might come.
21 21
22=head2 ABOUT THE HEADER 22=head2 ABOUT THE HEADER
27 #include <ecb.h> 27 #include <ecb.h>
28 28
29The header should work fine for both C and C++ compilation, and gives you 29The header should work fine for both C and C++ compilation, and gives you
30all of F<inttypes.h> in addition to the ECB symbols. 30all of F<inttypes.h> in addition to the ECB symbols.
31 31
32There are currently no objetc files to link to - future versions might 32There are currently no object files to link to - future versions might
33come with an (optional) object code library to link against, to reduce 33come with an (optional) object code library to link against, to reduce
34code size or gain access to additional features. 34code size or gain access to additional features.
35 35
36It also currently includes everything from F<inttypes.h>. 36It also currently includes everything from F<inttypes.h>.
37 37
313=over 4 313=over 4
314 314
315=item x = ecb_mod (m, n) 315=item x = ecb_mod (m, n)
316 316
317Returns the positive remainder of the modulo operation between C<m> and 317Returns the positive remainder of the modulo operation between C<m> and
318C<n>. Unlike the C moduloe operator C<%>, this function ensures that the 318C<n>. Unlike the C modulo operator C<%>, this function ensures that the
319return value is always positive). 319return value is always positive).
320 320
321C<n> must be strictly positive (i.e. C<< >1 >>), while C<m> must be 321C<n> must be strictly positive (i.e. C<< >1 >>), while C<m> must be
322negatable, that is, both C<m> and C<-m> must be representable in its 322negatable, that is, both C<m> and C<-m> must be representable in its
323type. 323type.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines