diff liboctave/util/oct-inttypes.h @ 27281:db687716fed6

style fixes: generally aim to break long lines before operators, not after Files affected: Table.cc, dw-main-window.cc, file-editor-tab.cc, file-editor.cc, main-window.cc, build-env.in.cc, __ichol__.cc, __magick_read__.cc, besselj.cc, bsxfun.cc, cellfun.cc, data.cc, dlmread.cc, error.cc, fcn-info.cc, file-io.cc, gl-render.cc, gl2ps-print.cc, graphics.cc, load-save.cc, ls-mat4.cc, ls-mat5.cc, matrix_type.cc, mex.cc, oct-stream.cc, pr-output.cc, quadcc.cc, rand.cc, sparse-xpow.cc, syscalls.cc, sysdep.cc, utils.cc, __init_fltk__.cc, __init_gnuplot__.cc, chol.cc, fftw.cc, qr.cc, cdef-class.cc, cdef-object.cc, ov-bool-sparse.cc, ov-cell.cc, ov-class.cc, ov-cx-diag.cc, ov-cx-sparse.cc, ov-fcn-handle.cc, ov-flt-cx-diag.cc, ov-flt-re-diag.cc, ov-str-mat.cc, ov-struct.cc, ov.cc, op-b-sbm.cc, op-bm-sbm.cc, op-cdm-cdm.cc, op-scm-scm.cc, op-sm-scm.cc, op-sm-sm.cc, jit-typeinfo.cc, pt-cbinop.cc, pt-cbinop.h, pt-eval.cc, CSparse.cc, MatrixType.cc, dSparse.cc, eigs-base.cc, lo-specfun.cc, oct-fftw.cc, cmd-edit.cc, lo-regexp.cc, oct-inttypes.h, url-transfer.cc, mkoctfile.in.cc, and octave-svgconvert.cc.
author John W. Eaton <jwe@octave.org>
date Sun, 21 Jul 2019 10:21:01 -0400
parents 00f796120a6d
children 3db033e86376
line wrap: on
line diff
--- a/liboctave/util/oct-inttypes.h	Fri Jul 19 14:15:04 2019 -0400
+++ b/liboctave/util/oct-inttypes.h	Sun Jul 21 10:21:01 2019 -0400
@@ -138,12 +138,13 @@
     static const bool t1sig = std::numeric_limits<T1>::is_signed;
     static const bool t2sig = std::numeric_limits<T2>::is_signed;
 
-    static const bool psig =
-      (pint || (sizeof (T2) > sizeof (T1) && t2sig) || t1sig);
+    static const bool psig
+      = (pint || (sizeof (T2) > sizeof (T1) && t2sig) || t1sig);
 
-    static const int psize =
-      (pint ? sizeof (int) : (sizeof (T2) > sizeof (T1)
-                              ? sizeof (T2) : sizeof (T1)));
+    static const int psize
+      = (pint
+         ? sizeof (int)
+         : (sizeof (T2) > sizeof (T1) ? sizeof (T2) : sizeof (T1)));
   public:
 
     typedef typename query_integer_type<psize, psig>::type type;
@@ -371,12 +372,12 @@
     static const int t_size = sizeof (T);
     static const int s_size = sizeof (S);
 
-    static const bool omit_chk_min =
-      (! s_is_signed || (t_is_signed && t_size >= s_size));
+    static const bool omit_chk_min
+      = (! s_is_signed || (t_is_signed && t_size >= s_size));
 
-    static const bool omit_chk_max =
-      (t_size > s_size || (t_size == s_size
-                           && (! t_is_signed || s_is_signed)));
+    static const bool omit_chk_max
+      = (t_size > s_size
+         || (t_size == s_size && (! t_is_signed || s_is_signed)));
 
     // If the check can be omitted, substitute constant false
     // relation.