Changes in / [6d2aa7ed:61323a7]


Ignore:
Files:
122 added
234 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • doc/papers/concurrency/Makefile

    r6d2aa7ed r61323a7  
    33Build = build
    44Figures = figures
    5 Macros = AMA/AMA-stix/ama
     5Macros = ../AMA/AMA-stix/ama
    66TeXLIB = .:annex:../../LaTeXmacros:${Macros}:${Build}:../../bibliography:
    77LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
     
    7979
    8080WileyNJD-AMA.bst:
    81         ln -fs AMA/AMA-stix/ama/WileyNJD-AMA.bst .
     81        ln -fs ../AMA/AMA-stix/ama/WileyNJD-AMA.bst .
    8282
    8383%.tex : %.fig
  • doc/papers/concurrency/Paper.tex

    r6d2aa7ed r61323a7  
    1212
    1313% Latex packages used in the document.
     14
    1415\usepackage{epic,eepic}
    1516\usepackage{xspace}
     
    2122\usepackage{siunitx}
    2223\sisetup{ binary-units=true }
    23 %\input{style}                                                          % bespoke macros used in the document
    2424
    2525\hypersetup{breaklinks=true}
     
    3131\renewcommand{\linenumberfont}{\scriptsize\sffamily}
    3232
    33 \lefthyphenmin=4                                                        % hyphen only after 4 characters
    34 \righthyphenmin=4
     33\renewcommand{\textfraction}{0.0}       % the entire page maybe devoted to floats with no text on the page at all
     34
     35\lefthyphenmin=3                                                        % hyphen only after 4 characters
     36\righthyphenmin=3
    3537
    3638%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  • doc/papers/general/Makefile

    r6d2aa7ed r61323a7  
    33Build = build
    44Figures = figures
    5 Macros = AMA/AMA-stix/ama
     5Macros = ../AMA/AMA-stix/ama
    66TeXLIB = .:${Macros}:${Build}:../../bibliography:
    77LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
     
    7373
    7474WileyNJD-AMA.bst:
    75         ln -fs AMA/AMA-stix/ama/WileyNJD-AMA.bst .
     75        ln -fs ../AMA/AMA-stix/ama/WileyNJD-AMA.bst .
    7676
    7777${GRAPHS} : timing.gp timing.dat
  • doc/papers/general/Paper.tex

    r6d2aa7ed r61323a7  
    1 \documentclass[AMA,STIX1COL]{WileyNJD-v2}
    2 
     1\documentclass[AMA,STIX1COL,STIXSMALL]{WileyNJD-v2}
    32\articletype{RESEARCH ARTICLE}%
    43
     
    8685% Latin abbreviation
    8786\newcommand{\abbrevFont}{\textit}                       % set empty for no italics
     87\@ifundefined{eg}{
    8888\newcommand{\EG}{\abbrevFont{e}.\abbrevFont{g}.}
    8989\newcommand*{\eg}{%
     
    9191                {\@ifnextchar{:}{\EG}%
    9292                        {\EG,\xspace}}%
    93 }%
     93}}{}%
     94\@ifundefined{ie}{
    9495\newcommand{\IE}{\abbrevFont{i}.\abbrevFont{e}.}
    9596\newcommand*{\ie}{%
     
    9798                {\@ifnextchar{:}{\IE}%
    9899                        {\IE,\xspace}}%
    99 }%
     100}}{}%
     101\@ifundefined{etc}{
    100102\newcommand{\ETC}{\abbrevFont{etc}}
    101103\newcommand*{\etc}{%
    102104        \@ifnextchar{.}{\ETC}%
    103105        {\ETC.\xspace}%
    104 }%
     106}}{}%
     107\@ifundefined{etal}{
    105108\newcommand{\ETAL}{\abbrevFont{et}~\abbrevFont{al}}
    106 \renewcommand*{\etal}{%
     109\newcommand*{\etal}{%
    107110        \@ifnextchar{.}{\protect\ETAL}%
    108111                {\protect\ETAL.\xspace}%
    109 }%
     112}}{}%
     113\@ifundefined{viz}{
    110114\newcommand{\VIZ}{\abbrevFont{viz}}
    111115\newcommand*{\viz}{%
    112116        \@ifnextchar{.}{\VIZ}%
    113117                {\VIZ.\xspace}%
    114 }%
     118}}{}%
    115119\makeatother
    116120
     
    174178\author[1]{Robert Schluntz}
    175179\author[1]{Peter A. Buhr*}
    176 \authormark{Aaron Moss \textsc{et al}}
     180\authormark{MOSS \textsc{et al}}
    177181
    178182\address[1]{\orgdiv{David R. Cheriton School of Computer Science}, \orgname{University of Waterloo}, \orgaddress{\state{Ontario}, \country{Canada}}}
     
    20432047\subsection{Integral Suffixes}
    20442048
    2045 Additional integral suffixes are added to cover all the integral types and lengths.
     2049New integral suffixes @hh@ (half of half of @int@) for @char@, @h@ (half of @int@) for @short@, and @z@ for @size_t@, and length suffixes for 8, 16, 32, 64, and 128 bit integers.
     2050%Additional integral suffixes are added to cover all the integral types and lengths.
    20462051\begin{cquote}
    20472052\lstDeleteShortInline@%
     
    20492054\begin{cfa}
    2050205520_`hh`     // signed char
    2051 21_`hhu`   // unsigned char
     205621_`hh`u    // unsigned char
    2052205722_`h`       // signed short int
    2053 23_`uh`     // unsigned short int
    2054 24_`z`       // size_t
     205823_u`h`     // unsigned short int
     205924`z`       // size_t
    20552060\end{cfa}
    20562061&
    20572062\begin{cfa}
    2058206320_`L8`      // int8_t
    2059 21_`ul8`     // uint8_t
     206421_u`l8`     // uint8_t
    2060206522_`l16`     // int16_t
    2061 23_`ul16`   // uint16_t
     206623_u`l16`   // uint16_t
    2062206724_`l32`     // int32_t
    20632068\end{cfa}
    20642069&
    20652070\begin{cfa}
    2066 25_`ul32`      // uint32_t
     207125_u`l32`      // uint32_t
    2067207226_`l64`        // int64_t
    2068 27_`l64u`      // uint64_t
     207327_`l64`u      // uint64_t
    2069207426_`L128`     // int128
    2070 27_`L128u`   // unsigned int128
     207527_`L128`u   // unsigned int128
    20712076\end{cfa}
    20722077\end{tabular}
     
    21152120\multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{postfix function}}        & \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{constant}}      & \multicolumn{1}{c@{\hspace{2\parindentlnth}}}{\textbf{variable/expression}}   & \multicolumn{1}{c}{\textbf{postfix pointer}}  \\
    21162121\begin{cfa}
    2117 int ?`h( int s );
    2118 int ?`h( double s );
    2119 int ?`m( char c );
    2120 int ?`m( const char * s );
    2121 int ?`t( int a, int b, int c );
    2122 \end{cfa}
    2123 &
    2124 \begin{cfa}
    2125 0 `h;
    2126 3.5`h;
    2127 '1'`m;
    2128 "123" "456"`m;
    2129 [1,2,3]`t;
     2122int |?`h|( int s );
     2123int |?`h|( double s );
     2124int |?`m|( char c );
     2125int |?`m|( const char * s );
     2126int |?`t|( int a, int b, int c );
     2127\end{cfa}
     2128&
     2129\begin{cfa}
     21300 |`h|;
     21313.5|`h|;
     2132'1'|`m|;
     2133"123" "456"|`m|;
     2134[1,2,3]|`t|;
    21302135\end{cfa}
    21312136&
    21322137\begin{cfa}
    21332138int i = 7;
    2134 i`h;
    2135 (i + 3)`h;
    2136 (i + 3.5)`h;
    2137 
    2138 \end{cfa}
    2139 &
    2140 \begin{cfa}
    2141 int (* ?`p)( int i );
    2142 ?`p = ?`h;
    2143 3`p;
    2144 i`p;
    2145 (i + 3)`p;
     2139i|`h|;
     2140(i + 3)|`h|;
     2141(i + 3.5)|`h|;
     2142
     2143\end{cfa}
     2144&
     2145\begin{cfa}
     2146int (* |?`p|)( int i );
     2147|?`p| = |?`h|;
     21483|`p|;
     2149i|`p|;
     2150(i + 3)|`p|;
    21462151\end{cfa}
    21472152\end{tabular}
  • src/Parser/parser.yy

    r6d2aa7ed r61323a7  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Mar 28 17:52:24 2018
    13 // Update Count     : 3130
     12// Last Modified On : Tue Apr 17 17:10:30 2018
     13// Update Count     : 3144
    1414//
    1515
     
    391391%precedence '('
    392392
    393 %locations                      // support location tracking for error messages
     393%locations                                                                                              // support location tracking for error messages
    394394
    395395%start translation_unit                                                                 // parse-tree root
     
    17081708        | LONG
    17091709                { $$ = DeclarationNode::newLength( DeclarationNode::Long ); }
    1710         | ZERO_T
    1711                 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Zero ); }
    1712         | ONE_T
    1713                 { $$ = DeclarationNode::newBuiltinType( DeclarationNode::One ); }
    17141710        | VALIST                                                                                        // GCC, __builtin_va_list
    17151711                { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Valist ); }
     
    17311727basic_type_specifier:
    17321728        direct_type
     1729                // Cannot have type modifiers, e.g., short, long, etc.
    17331730        | type_qualifier_list_opt indirect_type type_qualifier_list_opt
    17341731                { $$ = $2->addQualifiers( $1 )->addQualifiers( $3 ); }
     
    17361733
    17371734direct_type:
    1738                 // A semantic check is necessary for conflicting type qualifiers.
    17391735        basic_type_name
    17401736        | type_qualifier_list basic_type_name
     
    17551751        | ATTR_TYPEGENname '(' comma_expression ')'                     // CFA: e.g., @type(a+b) y;
    17561752                { $$ = DeclarationNode::newAttr( $1, $3 ); }
     1753        | ZERO_T                                                                                        // CFA
     1754                { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Zero ); }
     1755        | ONE_T                                                                                         // CFA
     1756                { $$ = DeclarationNode::newBuiltinType( DeclarationNode::One ); }
    17571757        ;
    17581758
  • src/tests/concurrent/preempt.c

    r6d2aa7ed r61323a7  
    1111}
    1212
     13#ifdef LONG_TEST
     14static const unsigned long N = 30_000ul;
     15#else
     16static const unsigned long N = 500ul;
     17#endif
     18
    1319static volatile int counter = 0;
    1420
     
    2228
    2329void main(worker_t & this) {
    24         while(counter < 1000) {
     30        while(counter < N) {
    2531                if( (counter % 7) == this.value ) {
    2632                        int next = __atomic_add_fetch_4(&counter, 1, __ATOMIC_SEQ_CST);
Note: See TracChangeset for help on using the changeset viewer.