Changeset 97453ce for libcfa/src


Ignore:
Timestamp:
Jun 17, 2023, 11:11:24 PM (18 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
b87ef7be
Parents:
c8cbb41
Message:

add length qualifiers on one_t constants in ceiling_div

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/math.hfa

    rc8cbb41 r97453ce  
    1010// Created On       : Mon Apr 18 23:37:04 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jun 17 18:42:45 2023
    13 // Update Count     : 198
     12// Last Modified On : Sat Jun 17 22:59:42 2023
     13// Update Count     : 199
    1414//
    1515
     
    385385        // T floor( T n, T align ) { return n / align * align; }
    386386
    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; }
    397397
    398398        signed char ceiling( signed char n, char align ) {
Note: See TracChangeset for help on using the changeset viewer.