Changeset cefc59f for libcfa/src


Ignore:
Timestamp:
Apr 24, 2020, 12:11:44 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
13099a8b
Parents:
93ace83 (diff), 2a01c9b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    r93ace83 rcefc59f  
    603603        int async_statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf) {
    604604                #if !defined(IORING_OP_STATX)
    605                         return statx( dirfd, pathname, flags, mask, statxbuf );
     605                        //return statx( dirfd, pathname, flags, mask, statxbuf );
     606                        return syscall( __NR_io_uring_setup, dirfd, pathname, flags, mask, statxbuf );
    606607                #else
    607608                        __submit_prelude
  • libcfa/src/iostream.cfa

    r93ace83 rcefc59f  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr 22 10:50:46 2020
    13 // Update Count     : 933
     12// Last Modified On : Thu Apr 23 17:33:32 2020
     13// Update Count     : 942
    1414//
    1515
     
    593593                                        (ostype &)(os | fmt | "" | fmt2); \
    594594                                } else if ( f.base == 'o' ) { \
    595                                         if ( fmt.flags.pc && fmt.pc > 21 ) fmt.pc -= 21; \
     595                                        if ( fmt.flags.pc && fmt.pc > 22 ) fmt.pc -= 22; \
    596596                                        if ( fmt.flags.left ) { \
    597597                                                fmt.flags.left = false; \
    598598                                                fmt.wd = 1; \
    599599                                                fmt.val = (unsigned long long int)fmt.val >> 2; \
     600                                                printf( "L %llo %d %d '%c' %x\n", fmt.val, fmt.wd, fmt.pc, fmt.base, fmt.all ); \
    600601                                                fmt2.wd = 1; \
    601602                                                fmt2.val = ((msig & 0x3) << 1) + 1; \
     
    603604                                                sepOff( os ); \
    604605                                                fmt2.flags.left = true; \
    605                                                 fmt2.wd = f.wd - ( ceiling( high1( fmt.val ), 3 ) + 1 ); \
     606                                                int msigd = ceiling( high1( fmt.val ), 3 ) + 1; \
     607                                                fmt2.wd = f.wd - (fmt.pc > msigd ? fmt.pc : msigd); \
     608                                                if ( fmt2.wd < 0 ) fmt2.wd = 21; \
    606609                                                fmt2.flags.pc = true; fmt2.pc = 21; \
    607                                                 if ( ! fmt.flags.nobsdp ) { fmt2.wd -= 1; } \
     610                                                if ( ! fmt.flags.nobsdp ) { if ( fmt.pc < fmt.wd ) fmt.wd -= 1; else fmt.pc -= 1; } \
    608611                                                fmt2.val = lsig & 0x7fffffffffffffff; \
    609612                                                (ostype &)(os | fmt2); \
Note: See TracChangeset for help on using the changeset viewer.