Changeset 97453ce for libcfa/src
- Timestamp:
- Jun 17, 2023, 11:11:24 PM (18 months ago)
- Branches:
- master
- Children:
- b87ef7be
- Parents:
- c8cbb41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/math.hfa
rc8cbb41 r97453ce 10 10 // Created On : Mon Apr 18 23:37:04 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jun 17 18:42:45202313 // Update Count : 19 812 // Last Modified On : Sat Jun 17 22:59:42 2023 13 // Update Count : 199 14 14 // 15 15 … … 385 385 // T floor( T n, T align ) { return n / align * align; } 386 386 387 signed char ceiling_div( signed char n, char align ) { return (n + (align - 1 )) / align; }388 unsigned char ceiling_div( unsigned char n, unsigned char align ) { return (n + (align - 1 )) / align; }389 short int ceiling_div( short int n, short int align ) { return (n + (align - 1 )) / align; }390 unsigned short int ceiling_div( unsigned short int n, unsigned short int align ) { return (n + (align - 1 )) / align; }391 int ceiling_div( int n, int align ) { return (n + (align - 1 )) / align; }392 unsigned int ceiling_div( unsigned int n, unsigned int align ) { return (n + (align - 1 )) / align; }393 long int ceiling_div( long int n, long int align ) { return (n + (align - 1 )) / align; }394 unsigned long int ceiling_div( unsigned long int n, unsigned long int align ) { return (n + (align - 1 )) / align; }395 long long int ceiling_div( long long int n, long long int align ) { return (n + (align - 1 )) / align; }396 unsigned long long int ceiling_div( unsigned long long int n, unsigned long long int align ) { return (n + (align - 1 )) / align; }387 signed char ceiling_div( signed char n, char align ) { return (n + (align - 1hh)) / align; } 388 unsigned char ceiling_div( unsigned char n, unsigned char align ) { return (n + (align - 1hh)) / align; } 389 short int ceiling_div( short int n, short int align ) { return (n + (align - 1h)) / align; } 390 unsigned short int ceiling_div( unsigned short int n, unsigned short int align ) { return (n + (align - 1h)) / align; } 391 int ceiling_div( int n, int align ) { return (n + (align - 1n)) / align; } 392 unsigned int ceiling_div( unsigned int n, unsigned int align ) { return (n + (align - 1n)) / align; } 393 long int ceiling_div( long int n, long int align ) { return (n + (align - 1l)) / align; } 394 unsigned long int ceiling_div( unsigned long int n, unsigned long int align ) { return (n + (align - 1l)) / align; } 395 long long int ceiling_div( long long int n, long long int align ) { return (n + (align - 1ll)) / align; } 396 unsigned long long int ceiling_div( unsigned long long int n, unsigned long long int align ) { return (n + (align - 1ll)) / align; } 397 397 398 398 signed char ceiling( signed char n, char align ) {
Note: See TracChangeset
for help on using the changeset viewer.