Skip to content
Permalink
Browse files

add vim modelines for formatting consistency

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information...
tycho committed Oct 5, 2018
1 parent ce9fe78 commit dded771dd9a5c65faece2065d0a9209e8beba5de
Showing with 45 additions and 0 deletions.
  1. +1 −0 cache.c
  2. +2 −0 cache.h
  3. +2 −0 clock.c
  4. +2 −0 clock.h
  5. +2 −0 cpuid.c
  6. +2 −0 cpuid.h
  7. +2 −0 feature.c
  8. +2 −0 feature.h
  9. +2 −0 handlers.c
  10. +2 −0 handlers.h
  11. +2 −0 main.c
  12. +2 −0 platform.h
  13. +2 −0 prefix.h
  14. +2 −0 sanity.c
  15. +2 −0 sanity.h
  16. +2 −0 state.h
  17. +2 −0 threads.c
  18. +2 −0 threads.h
  19. +2 −0 util.c
  20. +2 −0 util.h
  21. +2 −0 vendor.h
  22. +2 −0 version.c
  23. +2 −0 version.h
@@ -505,3 +505,4 @@ void print_intel_caches(struct cpu_regs_t *regs, const struct cpu_signature_t *s
}
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -79,3 +79,5 @@ struct cache_desc_t {
char *describe_cache(const struct cache_desc_t *desc, char *buffer, size_t bufsize, int indent);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -126,3 +126,5 @@ void init_cpu_clock(void)
{
calibrate_cpu_clock();
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -42,3 +42,5 @@ uint64_t cpu_clock_to_wall(uint64_t clock);
void init_cpu_clock(void);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -521,3 +521,5 @@ void cpuid_dump_vmware(struct cpu_regs_t *regs, struct cpuid_state_t *state, __u
printf("cpuid.%x.ecx = \"%s\"\n", state->last_leaf.eax, uint32_to_binary(buffer, regs->ecx));
printf("cpuid.%x.edx = \"%s\"\n", state->last_leaf.eax, uint32_to_binary(buffer, regs->edx));
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -59,3 +59,5 @@ void cpuid_dump_vmware(struct cpu_regs_t *regs, struct cpuid_state_t *state, BOO
BOOL cpuid_load_from_file(const char *filename, struct cpuid_state_t *state);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -1085,3 +1085,5 @@ void print_features(const struct cpu_regs_t *regs, struct cpuid_state_t *state)
state->last_leaf.eax, state->last_leaf.ecx,
accounting.eax, accounting.ebx, accounting.ecx, accounting.edx);
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -28,3 +28,5 @@ struct cpuid_state_t;
void print_features(const struct cpu_regs_t *regs, struct cpuid_state_t *state);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -1815,3 +1815,5 @@ static void handle_vmware_leaf10(struct cpu_regs_t *regs, struct cpuid_state_t *
(float)regs->eax / 1000.0f,
(float)regs->ebx / 1000.0f);
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -36,3 +36,5 @@ int vendor_id(const char *vendor);
const char *vendor_name(int vendor_id);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
2 main.c
@@ -359,3 +359,5 @@ int main(int argc, char **argv)

return ret;
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -213,3 +213,5 @@
#endif

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -127,3 +127,5 @@ static inline int c99_snprintf(char *outBuf, size_t size, const char *format, ..
extern int ignore_vendor;

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -387,3 +387,5 @@ int sanity_run(struct cpuid_state_t *state)
#endif
return ret;
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -27,3 +27,5 @@
int sanity_run(struct cpuid_state_t *state);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -80,3 +80,5 @@ struct cpuid_state_t
}

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -234,3 +234,5 @@ int thread_bind_stub(struct cpuid_state_t *state, uint32_t id)
state->cpu_bound_index = id;
return 0;
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -36,3 +36,5 @@ int thread_bind_stub(struct cpuid_state_t *state, uint32_t id);
uint32_t thread_count_stub(struct cpuid_state_t *state);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
2 util.c
@@ -117,3 +117,5 @@ double time_sec(void)
return (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0);
#endif
}

/* vim: set ts=4 sts=4 sw=4 noet: */
2 util.h
@@ -31,3 +31,5 @@ double time_sec(void);
#define NELEM(x) (sizeof(x) / sizeof((x)[0]))

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -39,3 +39,5 @@ typedef enum
} cpu_vendor_t;

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -62,3 +62,5 @@ int cpuid_version_build(void)
{
return CPUID_VERSION_BUILD;
}

/* vim: set ts=4 sts=4 sw=4 noet: */
@@ -32,3 +32,5 @@ int cpuid_version_revision(void);
int cpuid_version_build(void);

#endif

/* vim: set ts=4 sts=4 sw=4 noet: */

0 comments on commit dded771

Please sign in to comment.
You can’t perform that action at this time.